home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // MenuControl --> MenuItems --> FusionWindow
- //
-
- #include "fliwin.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // Available()
- //
- // Defines if an option is available
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void MenuManager::Available(int &Available)
- {
- if (!NumberOfMenus)
- return;
-
- if (!CurrentLevel)
- (Menus[NumberOfMenus-1]->Option+
- Menus[NumberOfMenus-1]->NumberOfOptions-1)
- ->Available=&Available;
- else
- (SubMenuTrack[CurrentLevel-1]->Option+
- SubMenuTrack[CurrentLevel-1]->NumberOfOptions-1)
- ->Available=&Available;
- }
-
-